package com.tubi.String;

import java.util.Scanner;

/*
    String.replace( 旧值 ，新值 )

 */
public class 敏感字符替换 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String tmd = s.replace("TMD", "***");
        System.out.println(tmd);
    }
}
